﻿/**
 * ...
 * @author sminutoli
 */
class com.dmotiko.prune.SiteSections 
{
	public static var HOME:String = "prune_home";
	public static var PRUNE:String = "prune_prune";
	public static var COLLECTION:String = "prune_collection";
	public static var CAMPAIGN:String = "prune_campaign";
	public static var STORES:String = "prune_stores";
	public static var NEWS:String = "prune_news";
	public static var FASHION:String = "prune_fashion";
	public static var NEWSLETTER:String = "prune_newsletter";
	public static var CONTACT:String = "prune_contact";
	public static var CONTACT_ATEN:String = "prune_contact_aten";
	public static var CONTACT_RRHH:String = "prune_contact_rrhh";
	public static var CONTACT_FRAN:String = "prune_contact_fran";
	public static var CONTACT_IMG:String = "prune_contact_img";
	public static var BELONG:String = "prune_belong";
	public static var GIFT:String = "prune_gift";
	public static var FAQ:String = "prune_faq";
	
	public static function validate(sSection:String):Boolean {
		var aSections:Array = [ HOME, PRUNE, COLLECTION, CAMPAIGN, STORES, NEWS, FASHION, NEWSLETTER, CONTACT, CONTACT_ATEN, CONTACT_RRHH, CONTACT_FRAN, CONTACT_IMG, BELONG, GIFT, FAQ ];
		for (var i:Number = 0; i < aSections.length; i++) 
		{
			if ( aSections[i] == sSection ) return true;
		}
	}
		
}